package ms07.ticket;

import ms07.ticket.activities.ActivityTickets;
import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class RailTicket extends TabActivity {
	MyApplication application;
	
	/** Called when the activity is first created. */
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		this.application = (MyApplication)this.getApplication();
		
		TabHost host = getTabHost();
		
		host.addTab(host.newTabSpec("one")
				.setIndicator(getString(R.string.tickets))
				.setContent(new Intent(this, ActivityTickets.class)));

//		host.addTab(host.newTabSpec("two")
//				.setIndicator(getString(R.string.all_requests))
//				.setContent(new Intent(this, AllRequests.class)));

		host.addTab(host.newTabSpec("three")
				.setIndicator(getString(R.string.request_ticket))
				.setContent(new Intent(this, ms07.ticket.activities.ActivityTicketRequest.class)));
		
		//TODO check if settings are set!!!
		//SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
		
	}
}

 
